{if isset($pager)}
<div class="row-fluid page" style="margin-top:-10px;">
  {if $pager->getPage() > 1}
  <a href="{$pager->link($pager->begin())}">首页</a>
  <a href="{$pager->link($pager->prev())}">上一页</a>
  {/if}
  {foreach $pager->getPagesArray(9) as $p}
  {if $pager->getPage() == $p}
  <a href="{$pager->link($p)}" class="curr">{$p}</a>
  {else}
  <a href="{$pager->link($p)}">{$p}</a>
  {/if}
  {/foreach}
  {if $pager->getPage() < $pager->getPages()}
  <a href="{$pager->link($pager->next())}">下一页</a>
  <a href="{$pager->link($pager->end())}">末页 </a>
  {/if}
  <a href="javascript:void(0);">总共 {$pager->getPages()} 页，{$pager->getTotal()}条记录</a>
</div>
{/if}